package com.hsg;

/**
 * @description:
 * @author:hsg
 * @date: Created in 2020/6/7 10:21
 * @version: 1.8
 * @modified By:
 */
public class WeaponSword extends Weapon{
    public WeaponSword(String id, String description, int damagePoints) {
        super(id, description, damagePoints);
    }

    @Override
    public void useArticle(Creature enemyCreature) {
        enemyCreature.setHPvalue(enemyCreature.getHPvalue()+this.getDamagePoints());
    }
}
